

import logging
import sys
from fastapi import FastAPI
from loguru import logger

from config.logging import settings


def register(app:FastAPI):
    logger.add(settings.PATH,level=settings.LEVEL, encoding="utf-8", enqueue=True,catch=True, rotation=settings.ROTATION, retention=settings.RETENTION)